#!/usr/bin/env python
# -*- coding: utf-8 -*-

from WSThread import WSThread
import copy

class WSKernel:
	pool = []
	def __init__(self):
		pass
	def createThreads(self, threads):
		self.pool = threads
		for thread in threads:
			thread.start()
		
	def finished(self):
		for pool in self.pool:
			if pool.running:
				return False
		return True
		
